<html>
<head>	
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" type="text/css" href="../../../lib/css/layout.css"/>
	<link  rel="stylesheet" type="text/css" href="../../../lib/css/jquery-ui-1.8.6.custom.css" />
	<link rel="stylesheet" href="../../../lib/css/smartui.css"/>
	<link rel="stylesheet" href="../../../lib/css/general.css"/>
	<link rel="stylesheet" href="../../../lib/css/jquery.treeview.css"/>
    <script src="../../../lib/jquery-1.4.4.min.js" type="text/javascript"></script>
	<script src="../../../lib/jquery.cookie.js" type="text/javascript"></script>
	<script src="../../../lib/jquery.treeview.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../../lib/demo.js"></script>
    <script type="text/javascript" src="../../../lib/common.js"></script>
	<script type="text/javascript" src="../../../lib/datetimepicker_css.js"></script>
    <script type="text/javascript" src="../../../lib/jquery-ui-1.8.6.custom.min.js"></script>
	<script type="text/javascript" src="../../../lib/picnet.js"></script>
    <script type="text/javascript" src="../../../lib/ajaxfileupload.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//alert("hehee");
	
	//test();
	
});
function test(){
	//alert();
	
}
</script>
</head>
<body>
<?php
	session_start();
	$username=$_SESSION['username'];
	$name=$_REQUEST['name'];
	$file=$_FILES;
	echo "aa";
	//$_FILES[$name]['name'];
	include_once '../../Model/Upload.php';
	$root='../../../upload/';
	$up = new Upload();
	$result=$up->upload_file_news($file,$username,$name,$root);
	echo $result;
	echo "<script type='text/javascript'>$(document).ready(function(){
	window.close();
	opener.get_result('".$result."');
	
	});</script>";
?>
</body>
</hmtl>
